class IhrmLoginApi(object):

    # 发送验证码请求
    # @classmethod
    # def get_verify(cls, session):
    #     session.get(url="http://ihrm-java.itheima.net/api/sys/login")

    # 发送登录请求
    @classmethod
    def login(cls, session, login_data):
        resp = session.post(url=" http://ihrm-java.itheima.net/api/sys/login",
                            json=login_data)
        return resp
